package com.explment.lens.controller;

import com.explment.lens.entity.SysGroupEntity;
import com.explment.lens.service.SysGroupService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 业务分组 controller
 */
@RestController
@RequestMapping("/sysGroupEntity")
public class SysGroupController {
    @Autowired
    private SysGroupService sysGroupEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysGroupEntityService.getById(id));
    }
}